projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686259e
)
* lisp/emacs-lisp/comp.el (comp-effective-async-max-jobs): Handle BSD.
author
Ashish SHUKLA
<ashish@FreeBSD.org>
Fri, 16 Apr 2021 09:13:09 +0000
(11:13 +0200)
committer
Andrea Corallo
<akrl@sdf.org>
Fri, 16 Apr 2021 09:13:09 +0000
(11:13 +0200)
lisp/emacs-lisp/comp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/comp.el
b/lisp/emacs-lisp/comp.el
index b5c9cb58260d3b73fe42f37a609762c9364105a3..0122008fc9e361b761f819580b868da8170daf4e 100644
(file)
--- a/
lisp/emacs-lisp/comp.el
+++ b/
lisp/emacs-lisp/comp.el
@@
-3860,6
+3860,9
@@
processes from `comp-async-compilations'"
((executable-find "nproc")
(string-to-number
(shell-command-to-string "nproc")))
+ ((eq 'berkeley-unix system-type)
+ (string-to-number
+ (shell-command-to-string "sysctl -n hw.ncpu")))
(t 1))
2))))
comp-async-jobs-number))